import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';
import 'package:heyangkuaidai/FrameWorkModule/Utils/CountButton.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/InputWidget.dart';
//第三类item
class smsCodeItem extends StatefulWidget {
  final Function finishCallback;
  smsCodeItem({this.finishCallback});
  @override
  _smsCodeItemState createState() => _smsCodeItemState();
}

class _smsCodeItemState extends State<smsCodeItem> {

  @override
  Widget build(BuildContext context) {
    return Container(
        color:Colors.white,
        width: ScreenUtil.screenWidth,
        height: ScreenUtil().setWidth(50),
        child:Column(
          children: [
            Container(height: ScreenUtil().setWidth(49),
              child:Row(
                children: [
                  SizedBox(width:ScreenUtil().setWidth(14) ,),
                  Container(
                    width: ScreenUtil().setWidth(80),
                    child:Text("验证码",style: TextStyle(fontSize: ScreenUtil().setSp(15),color:Color(0xff666666)),textAlign: TextAlign.left,),
                  ),
                  SizedBox(width:ScreenUtil().setWidth(10) ,),
                  InputWidget("请输入短信验证码",width: 170,finishCallback: widget.finishCallback,maxlength:6,),
                  Container(
                      width: ScreenUtil().setWidth(90),
                      height: ScreenUtil().setWidth(26),
                      decoration: BoxDecoration(
                        border: Border.all(width: 1,color:Color(0xff6E83EF)),
                      ),
                      child:Center(
                          child:CountButton(available: true,fontSize:ScreenUtil().setSp(13),onTapCallback:(){
                            // dispatch(ProductMarketLoanApplyActionCreator.smsAction());
                          })
                      )
                  ) ,
                ],
              ),),
            Container(height: ScreenUtil().setWidth(0.5),width: ScreenUtil.screenWidth,color: Color(0xffD8D8D8),),
          ],
        )
    );
  }
}

